package com.ruoyi.dispatch.mapper;

import com.ruoyi.dispatch.domain.MonthYield;
import com.ruoyi.dispatch.domain.WorkfaceDayReport;

import java.util.List;

/**
 * 产量日报Mapper接口
 * 
 * @author wuxiaofang
 * @date 2025-04-08
 */
public interface WorkfaceDayReportMapper 
{
    /**
     * 查询产量日报
     * 
     * @param reportId 产量日报主键
     * @return 产量日报
     */
    public WorkfaceDayReport selectWorkfaceDayReportByReportId(Long reportId);

    /**
     * 查询产量日报列表
     * 
     * @param workfaceDayReport 产量日报
     * @return 产量日报集合
     */
    public List<WorkfaceDayReport> selectWorkfaceDayReportList(WorkfaceDayReport workfaceDayReport);

    /**
     * 新增产量日报
     * 
     * @param workfaceDayReport 产量日报
     * @return 结果
     */
    public int insertWorkfaceDayReport(WorkfaceDayReport workfaceDayReport);

    /**
     * 修改产量日报
     * 
     * @param workfaceDayReport 产量日报
     * @return 结果
     */
    public int updateWorkfaceDayReport(WorkfaceDayReport workfaceDayReport);

    /**
     * 删除产量日报
     * 
     * @param reportId 产量日报主键
     * @return 结果
     */
    public int deleteWorkfaceDayReportByReportId(Long reportId);

    /**
     * 批量删除产量日报
     * 
     * @param reportIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWorkfaceDayReportByReportIds(Long[] reportIds);

    public List<MonthYield> countMonthYield(String date);
    public List<MonthYield> countYearYield(String date);
}
